package com.hyper_yang._04_jvm.chap04;
import java.util.concurrent.atomic.AtomicLong;

public class StackRecurrenceDemo {
    private static AtomicLong atomicLong = new AtomicLong(0);

    public static void test() {
        System.out.println(atomicLong.getAndIncrement());
        test();
    }

    public static void main(String[] args) {
        StackRecurrenceDemo.test();

    }
}



/*
15462
Exception in thread "main" java.lang.StackOverflowError*/
